package org.ilead.iserve.dao;

import java.util.List;

import org.ilead.iserve.model.News;

public interface INewsDAO {

	//property constants
	public static final String CATEGORY_ID = "categoryId";
	public static final String TITLE = "title";
	public static final String IMAGE = "image";
	public static final String OUTLINE = "outline";
	public static final String KEY_WORDS = "keyWords";
	public static final String OPERATOR = "operator";
	public static final String AUTHOR = "author";
	public static final String CONTENT = "content";
	public static final String AUDITOR = "auditor";
	public static final String STATUS = "status";

	public abstract void save(News transientInstance);

	public abstract void delete(News persistentInstance);

	public abstract News findById(java.lang.Long id);

	public abstract List findByExample(News instance);

	public abstract List findByProperty(String propertyName, Object value);

	public abstract List findByCategoryId(Object categoryId);

	public abstract List findByTitle(Object title);

	public abstract List findByImage(Object image);

	public abstract List findByOutline(Object outline);

	public abstract List findByKeyWords(Object keyWords);

	public abstract List findByOperator(Object operator);

	public abstract List findByAuthor(Object author);

	public abstract List findByContent(Object content);

	public abstract List findByAuditor(Object auditor);

	public abstract List findByStatus(Object status);

	public abstract List findAll();

	public abstract News merge(News detachedInstance);

	public abstract void attachDirty(News instance);

	public abstract void attachClean(News instance);

}